package com.gitee.magic.jdbc.persistence;

import java.beans.PropertyDescriptor;

/**
 * @author start
 */
public class EntityProperty {
	
	/**
	 * 字段名称
	 */
	private String fieldName;
	
	/**
	 * 映射表的字段名
	 */
	private String tableFieldName;
	
	/**
	 * 类型
	 */
	private Class<?> dataType;
	
	private PropertyDescriptor descriptor ;
	
	private String duplicateKeyUpdated;

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getTableFieldName() {
		return tableFieldName;
	}

	public void setTableFieldName(String tableFieldName) {
		this.tableFieldName = tableFieldName;
	}

	public Class<?> getDataType() {
		return dataType;
	}

	public void setDataType(Class<?> dataType) {
		this.dataType = dataType;
	}

	public PropertyDescriptor getDescriptor() {
		return descriptor;
	}

	public void setDescriptor(PropertyDescriptor descriptor) {
		this.descriptor = descriptor;
	}

	public String getDuplicateKeyUpdated() {
		return duplicateKeyUpdated;
	}

	public void setDuplicateKeyUpdated(String duplicateKeyUpdated) {
		this.duplicateKeyUpdated = duplicateKeyUpdated;
	}

}
